<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Document</title>
</head>
<body>
<script>
    console.log(Math.pow(2,3))
    console.log(Number.parseFloat(12.234))
    //取整方法
    console.log(Number.parseInt(12.234))
    console.log(Math.trunc('123.45'))
    //向下取整
    console.log(Math.floor(12.234))
    //向上取整
    console.log(Math.ceil(12.234))
    //判断是否是整数，返回布尔值
    console.log(Number.isInteger(134))
  
</script>
</body>
</html>